package com.py.credit.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.framework.core.common.Page;

public interface DissentAppealDao {

	void addDissent(@Param(value="ztmc")String ztmc,
			@Param(value="sjlx")String sjlx,
			@Param(value="sjly")String sjly,
			@Param(value="jbrxm")String jbrxm,
			@Param(value="jbrzjhm")String jbrzjhm,
			@Param(value="lxfs")String lxfs,
			@Param(value="txdz")String txdz,
			@Param(value="description")String description,
			@Param(value="path")String path,
			@Param(value="tablename")String tablename,
			@Param(value="record_id")String record_id,
			@Param(value="key")String key,
			@Param(value="ssnr")String ssnr);

	List<Map<String, String>> getTableListForPage(
			@Param(value="ztmc")String ztmc,
			@Param(value="sjly")String sjly,
			@Param(value="page")Page page);

	void DissentHandle(
			@Param(value="id")String id,
			@Param(value="cljg")String cljg,
			@Param(value="clyj")String clyj, 
			@Param(value="status")String status,
			@Param(value="deptName")String deptName,
			@Param(value="olddata")String olddata,
			@Param(value="deptId")Long deptId,
			@Param(value="userId")Long userId);

	List<Map<String, String>> selectBaseData(@Param(value="record_id")String record_id, @Param(value="tablename")String tablename);

	List<Map<String, Object>> getHistoryTableListForPage(
			@Param(value="ztmc")String ztmc, 
			@Param(value="sjly")String sjly,
			@Param(value="cljg")String cljg,
			@Param(value="page")Page page,
			@Param(value="deptId")Long deptId,
			@Param(value="userId")Long userId);

	void deleteBaseData(@Param(value="record_id")String record_id, @Param(value="tablename")String tablename);

	List<Map<String, Object>> getdata(
			@Param(value="record_id")String record_id,
			@Param(value="tablename")String tablename,
			@Param(value="ztmc")String ztmc,
			@Param(value="cloumn")String cloumn);

	void executeDynamicSql(@Param(value="sql")String sql);

	Map<String, String> gettableId(@Param(value="resource_id")String resource_id,@Param(value="record_id")String record_id,@Param(value="tablename")String tablename);

	Map<String, String> getmapcf(@Param(value="record_id")String record_id, @Param(value="tablename")String tablename);

	Map<String, String> getmapHei(@Param(value="record_id")String record_id, @Param(value="tablename")String tablename);

	List<Map<String, String>> getProcessForPage(@Param(value="cxm")String cxm,@Param(value="page")Page page);

	void updateStatus(@Param(value="id")String id,@Param(value="status") String status,@Param(value="newdata")  String newdata,@Param(value="memetric")  String memetric);


	
	List<Map<String, String>> getsupervisionResultListForPage(
			@Param(value="ztmc") String ztmc, 
			@Param(value="tybm") String tybm, 
			@Param(value="type") String type,
			@Param(value="page") Page page);

	
	List<Map<String, String>> supervisionResultDetail(@Param(value="ztmc")String ztmc);


}
